package com.hf.eagle.dao.impl;

import org.springframework.dao.DataAccessException;
import org.springframework.stereotype.Service;

import com.ebiz.ssi.dao.ibatis.EntityDaoSqlMapImpl;
import com.hf.eagle.dao.SysDictionaryDao;
import com.hf.eagle.domain.SysDictionary;

/**
 * @author Xu,XiaoYuan
 * @version 2011-09-06 23:44
 */
@Service
public class SysDictionaryDaoImpl extends EntityDaoSqlMapImpl<SysDictionary> implements SysDictionaryDao {

	public Integer selectSysDictionaryMaxDictionaryValue(SysDictionary t) throws DataAccessException {
		return (Integer) super.getSqlMapClientTemplate().queryForObject("selectSysDictionaryMaxDictionaryValue", t);
	}

	public int deleteSysDictionaryByValue(SysDictionary t) throws DataAccessException {
		return super.getSqlMapClientTemplate().delete("deleteSysDictionaryByValue", t);
	}

}
